# -*- coding: utf-8 -*-
# @Time    : 2022/1/6 15:07
# @Author  : Mat
# @Email   : 2609404548@qq.com
# @File    : login_page.py
# @Software: PyCharm
"""修改日志"""


from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
from pages.base_page import BasePage
class XgrzYm(BasePage):
    rzbt_locator = (By.XPATH, "/html/body/div[5]/div[2]/div/form/table/tbody/tr[2]/td[2]/input")
    nrxgrz_locator = (By.CSS_SELECTOR, ".ke-edit-iframe")
    rzbc_locator = (By.CSS_SELECTOR, "input[value=保存]")
    def btxg(self):  #标题内容清除，重新输入内容
        self.driver.find_element(*self.rzbt_locator).send_keys(Keys.CONTROL, "a")
        self.driver.find_element(*self.rzbt_locator).send_keys(Keys.BACK_SPACE)
        self.driver.find_element(*self.rzbt_locator).send_keys("开始进行中")
    def nrxg(self):     #内容进行输入
        self.driver.find_element(*self.nrxgrz_locator).send_keys(Keys.CONTROL, "a")
        self.driver.find_element(*self.nrxgrz_locator).send_keys(Keys.BACK_SPACE)
        self.driver.find_element(*self.nrxgrz_locator).send_keys("进行下一步操作hnhnhnfghfhdhdgh")
    def djbc(self):   #进行保存
        self.driver.find_element(*self.rzbc_locator).click()

    dy_locator = (By.XPATH, '/ html / body / div[5] / div[2]')

    def dy_text(self):
        return self.driver.find_element(*self.dy_locator).text
